/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chapter5.behavioral.chainofresponsibility;

/**
 *
 * @author ASUS
 */
public class MercuryHandler extends PlanetHandler{

    @Override
    public void handleRequest(PlanetHandler request) {
    /*    if(request == PlanetEnum.MERCURY)
        {
            System.out.println("MercuryHandler handles " + request);
            System.out.println("Mercury is hot \n");
        }
        else
        {
            System.out.println("MercuryHandler doesn't handle "+request);
            if(successor != null)
            {
                successor.handleRequest(request);
            }
        } */
    }
    
}
